/* building-identify/building-identify.wxss */
.identify-container {
  padding: 20rpx;
  min-height: 100vh;
  background-color: #f5f5f5;
}

.content-card {
  background: #fff;
  border-radius: 16rpx;
  padding: 40rpx;
  box-shadow: 0 4rpx 20rpx rgba(0, 0, 0, 0.05);
}

.card-header {
  margin-bottom: 40rpx;
  text-align: center;
}

.title {
  display: block;
  font-size: 36rpx;
  font-weight: bold;
  color: #333;
  margin-bottom: 10rpx;
}

.subtitle {
  font-size: 26rpx;
  color: #999;
}

.preview-section {
  margin-bottom: 40rpx;
}

.preview-container {
  position: relative;
  width: 100%;
  height: 400rpx;
  border-radius: 12rpx;
  overflow: hidden;
  background: #f9f9f9;
}

.preview-image {
  width: 100%;
  height: 100%;
}

.remove-btn {
  position: absolute;
  top: 20rpx;
  right: 20rpx;
  width: 60rpx;
  height: 60rpx;
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36rpx;
  font-weight: bold;
}

.placeholder {
  width: 100%;
  height: 400rpx;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #f9f9f9;
  border-radius: 12rpx;
  border: 2rpx dashed #ddd;
}

.placeholder-icon {
  width: 120rpx;
  height: 120rpx;
  margin-bottom: 20rpx;
  opacity: 0.5;
}

.placeholder-text {
  font-size: 28rpx;
  color: #999;
}

.upload-options {
  display: flex;
  justify-content: space-between;
  margin-bottom: 40rpx;
}

.upload-btn {
  flex: 1;
  margin: 0 10rpx;
  padding: 20rpx;
  background: #f9f9f9;
  border: none;
  border-radius: 10rpx;
  font-size: 28rpx;
  color: #666;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.upload-btn.primary {
  background: #07C160;
  color: #fff;
}

.btn-icon {
  width: 50rpx;
  height: 50rpx;
  margin-bottom: 10rpx;
}

.input-section {
  margin-bottom: 40rpx;
}

.input-label {
  display: block;
  font-size: 28rpx;
  color: #333;
  margin-bottom: 20rpx;
}

.description-input {
  width: 100%;
  height: 200rpx;
  padding: 20rpx;
  border: 2rpx solid #eee;
  border-radius: 10rpx;
  font-size: 28rpx;
  box-sizing: border-box;
}

.char-count {
  display: block;
  text-align: right;
  font-size: 24rpx;
  color: #999;
  margin-top: 10rpx;
}

.identify-btn {
  width: 100%;
  background: #07C160;
  color: #fff;
  border-radius: 10rpx;
  font-size: 32rpx;
  padding: 25rpx 0;
}

.identify-btn[disabled] {
  background: #ccc;
  color: #fff;
}

.history-section {
  margin-top: 40rpx;
  text-align: center;
}

.history-btn {
  background: transparent;
  border: none;
  color: #07C160;
  font-size: 28rpx;
  display: inline-flex;
  align-items: center;
}

.history-icon {
  width: 36rpx;
  height: 36rpx;
  margin-right: 10rpx;
}

/* 结果弹窗样式 */
.result-modal {
  --modal-width: 90%;
  --modal-border-radius: 20rpx;
}

.result-content {
  padding: 30rpx 0;
}

/* 图片容器 - 增加传统风格边框 */
.result-image-container {
  position: relative;
  width: 100%;
  padding: 16rpx;
  margin-bottom: 40rpx;
  background-color: #fff;
  border-radius: 12rpx;
  box-shadow: 0 4rpx 16rpx rgba(0, 0, 0, 0.1);
}

.result-image {
  width: 100%;
  max-height: 400rpx;
  border-radius: 8rpx;
  display: block;
}

/* 装饰性边框 */
.image-frame {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border: 2rpx solid #ddd;
  border-radius: 12rpx;
  pointer-events: none;
  background-image: 
    linear-gradient(135deg, transparent 30rpx, #f5f5f5 30rpx, #f5f5f5 34rpx, transparent 34rpx),
    linear-gradient(225deg, transparent 30rpx, #f5f5f5 30rpx, #f5f5f5 34rpx, transparent 34rpx),
    linear-gradient(315deg, transparent 30rpx, #f5f5f5 30rpx, #f5f5f5 34rpx, transparent 34rpx),
    linear-gradient(45deg, transparent 30rpx, #f5f5f5 30rpx, #f5f5f5 34rpx, transparent 34rpx);
}

/* 信息区域样式优化 */
.result-info {
  margin-bottom: 40rpx;
  padding: 30rpx;
  background-color: #fcfcfc;
  border-radius: 12rpx;
  border: 1rpx solid #eee;
  position: relative;
}

/* 顶部和底部装饰元素 */
.info-decoration {
  height: 20rpx;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  margin: 10rpx 0;
}

.info-decoration.top {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='10' viewBox='0 0 200 10' fill='none'%3E%3Cpath d='M0 5H200' stroke='%23E5E5E5' stroke-width='1' stroke-dasharray='8 4'/%3E%3C/svg%3E");
}

.info-decoration.bottom {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='10' viewBox='0 0 200 10' fill='none'%3E%3Cpath d='M0 5H200' stroke='%23E5E5E5' stroke-width='1' stroke-dasharray='8 4'/%3E%3C/svg%3E");
}

.info-header {
  text-align: center;
  margin-bottom: 25rpx;
}

.result-name {
  display: inline-block;
  font-size: 36rpx;
  font-weight: bold;
  color: #333;
  padding: 0 20rpx;
  position: relative;
  line-height: 1.5;
}

/* 名称下方的分隔线 */
.divider {
  width: 80rpx;
  height: 4rpx;
  background-color: #07C160;
  margin: 15rpx auto 0;
  border-radius: 2rpx;
}

.result-desc-container {
  padding: 10rpx 0;
}

.result-desc {
  display: block;
  font-size: 30rpx;
  color: #555;
  line-height: 1.8;
  text-align: justify;
  letter-spacing: 0.5rpx;
  text-indent: 60rpx; /* 首行缩进 */
}

/* 按钮区域微调 */
.result-actions {
  display: flex;
  justify-content: space-between;
  margin-top: 10rpx;
}

.action-btn {
  flex: 1;
  margin: 0 10rpx;
  padding: 22rpx 0;
  border-radius: 10rpx;
  font-size: 30rpx;
  font-weight: 500;
}

.action-btn.secondary {
  background: #f5f5f5;
  color: #666;
}

.action-btn.primary {
  background: #07C160;
  color: #fff;
}

/* 相机弹窗样式 */
.camera-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #000;
  z-index: 1000;
  display: flex;
  flex-direction: column;
}

.camera {
  flex: 1;
  width: 100%;
  object-fit: cover;
}

/* 相机操作按钮区域 */
.camera-actions {
  position: absolute;
  bottom: 40rpx;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 60rpx;
  box-sizing: border-box;
  z-index: 1001;
}

.cancel-btn {
  background-color: rgba(255, 255, 255, 0.9);
  color: #333;
  padding: 20rpx 40rpx;
  border-radius: 50rpx;
  font-size: 32rpx;
  border: none;
  font-weight: 500;
  box-shadow: 0 4rpx 12rpx rgba(0, 0, 0, 0.15);
}

.take-photo-btn {
  width: 120rpx;
  height: 120rpx;
  border-radius: 50%;
  background-color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 8rpx solid rgba(255, 255, 255, 0.5);
  padding: 0;
  box-shadow: 0 4rpx 12rpx rgba(0, 0, 0, 0.2);
}

.shutter-icon {
  width: 60rpx;
  height: 60rpx;
}

/* 添加顶部状态栏区域 */
.camera-header {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  padding: 40rpx;
  box-sizing: border-box;
  z-index: 1001;
  display: flex;
  justify-content: flex-end;
}

.close-btn {
  width: 80rpx;
  height: 80rpx;
  border-radius: 50%;
  background-color: rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 40rpx;

/* 历史记录弹窗样式 */
.history-modal {
  --modal-width: 95%;
  --modal-height: 80%;
  --modal-border-radius: 20rpx;
}

.history-list {
  height: calc(100% - 80rpx);
  overflow-y: auto;
  padding: 10rpx 0;
}

.history-item {
  display: flex;
  padding: 20rpx;
  border-bottom: 1px solid #f0f0f0;
  align-items: center;
}

.history-image {
  width: 140rpx;
  height: 140rpx;
  border-radius: 10rpx;
  margin-right: 20rpx;
  object-fit: cover;
}

.history-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.history-name {
  font-size: 30rpx;
  color: #333;
  margin-bottom: 10rpx;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.history-time {
  font-size: 24rpx;
  color: #999;
}

.history-actions {
  margin-top: 15rpx;
}

.save-btn {
  background-color: #f5f5f5;
  color: #666;
  border-radius: 6rpx;
  padding: 8rpx 20rpx;
  font-size: 24rpx;
}

.save-btn.saved {
  background-color: #07C160;
  color: white;
}

.no-record {
  text-align: center;
  padding: 100rpx 0;
  color: #999;
  font-size: 28rpx;
}

.load-more {
  padding: 20rpx 0;
  text-align: center;
}

.load-more-btn {
  background-color: transparent;
  color: #07C160;
  font-size: 28rpx;
  padding: 10rpx 20rpx;
}
}